package at.hockey.ticker;

import android.content.Context;
import android.util.Log;

public class DataBox {

		private final String TAG = this.getClass().getSimpleName();
		private String mMessage = "Affenmann";
		private int mGetCounter = 0;
		private int mSetCounter = 0;
		
		
		public DataBox(Context context) {
			    /*this.dbHelper = new DbHelper(context);*/
			  mGetCounter = 0;
			  mSetCounter = 0;
			  Log.i(TAG, "Initialized data");
			  }
		
		
	    public String getDataBox() {
			String sGetCounter;
			String sSetCounter;
			
			mGetCounter++;
			sGetCounter = Integer.toString(mGetCounter);
			sSetCounter = Integer.toString(mSetCounter);
			Log.i(TAG, "getDataBox()");
	    	return "Set:" +  sSetCounter + " --> " + mMessage + " --> Get:" + sGetCounter;
		  }

		public void setDataBox	(String newMessage) {
			mSetCounter++;
			Log.i(TAG, "setDataBox() with " + newMessage);
			mMessage = newMessage;
		  }

}
